package com.dy.mongo.repository;

import com.dy.mongo.entity.Person;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.stereotype.Repository;

/**
 * 人物节点仓库，用于 CRUD 及自定义查询。
 */
@Repository
public interface PersonRepository extends Neo4jRepository<Person, Long> {
    Person findByCsvId(Long csvId);

    Person findByName(String name);
} 